package com.zhuangjie.shop.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zhuangjie.shop.dto.DishPageWrapperPageDTO;
import com.zhuangjie.shop.dto.DishSaveDTO;
import com.zhuangjie.shop.entity.Dish;
import com.zhuangjie.shop.vo.DishForCartItem;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜品表 服务类
 * </p>
 *
 * @author zhuangjie
 * @since 2023-09-24
 */
public interface DishService extends IService<Dish> {


    Page<Dish> queryShopCategoryListPage(Long shopId, DishPageWrapperPageDTO dishPageWrapperPageDTO) throws Exception;

    void changeDishStatus(Long dishId, Integer status);

    void deleteBatchDishes(List<String> dishIds);

    void saveShopDish(DishSaveDTO dishSaveDTO);

    DishSaveDTO getShopDishInfoById(Long dishId);

    void changeBetterDisplayStatus(Long dishId, Integer betterDisplayStatus);

    DishForCartItem getOneDishForCartItem(Long id);

    Map<Long,String> queryDishCategoryNameByIds(List<Long> dishIdList);
}
